package com.ydsungan.service;

import com.ydsungan.pojo.Comments;
import com.ydsungan.pojo.CommentsExample;
import com.ydsungan.pojo.Post;
import com.ydsungan.pojo.PostExample;

import java.text.ParseException;
import java.util.List;

public interface CommunityService {
    Post selectByPostId(int id);
    List<Post> selectByExample(PostExample postExample);
    List<Comments> selectCommentsByExample(CommentsExample commentsExample);
    int insertComments(Comments comments);
    int updatePostSelective(Post post);
    int updateCommentsSelective(Comments comments);
    long countPosts(Boolean today) throws ParseException;

}
